Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tweak BigQuery default project detection #195

Merged
merged 2 commits into from
Jul 11, 2016
Merged

Conversation

nevillelyh
Copy link
Contributor

No description provided.

throw new RuntimeException(
s"Property $PROJECT_KEY not set. Use -D$PROJECT_KEY=<BILLING_PROJECT>")
instance = if (sys.props(PROJECT_KEY) != null) {
BigQueryClient(sys.props(PROJECT_KEY))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the only reason this is still here is for backwards compatibility, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or in environments with no default, i.e. Travis.

@ravwojdyla
Copy link
Contributor

👍

@nevillelyh nevillelyh merged commit a514842 into master Jul 11, 2016
@nevillelyh nevillelyh deleted the neville/project branch July 11, 2016 19:31
nevillelyh added a commit that referenced this pull request Jul 19, 2016
* use DefaultProjectFactory to detect project

* detect default project in BigQueryClient

Conflicts:
	scio-bigquery/src/main/scala/com/spotify/scio/bigquery/BigQueryClient.scala
	scio-repl/src/main/scala/com/spotify/scio/repl/ScioILoop.scala
nevillelyh added a commit that referenced this pull request Oct 21, 2016
* use DefaultProjectFactory to detect project

* detect default project in BigQueryClient

Conflicts:
	scio-bigquery/src/main/scala/com/spotify/scio/bigquery/BigQueryClient.scala
	scio-repl/src/main/scala/com/spotify/scio/repl/ScioILoop.scala
nevillelyh added a commit that referenced this pull request Jan 11, 2017
* use DefaultProjectFactory to detect project

* detect default project in BigQueryClient

Conflicts:
	scio-bigquery/src/main/scala/com/spotify/scio/bigquery/BigQueryClient.scala
	scio-repl/src/main/scala/com/spotify/scio/repl/ScioILoop.scala
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants